package vip.xiaonuo.biz.modular.column.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import vip.xiaonuo.common.pojo.CommonEntity;
import vip.xiaonuo.common.pojo.CommonFile;


@Data
@TableName(value = "BIZ_COLUMN", autoResultMap = true)
public class BizColumn extends CommonEntity {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("栏目名称")
    private String name;

    @ApiModelProperty("封面")
    @TableField(value = "cover", typeHandler = JacksonTypeHandler.class)
    private CommonFile cover;

    @ApiModelProperty("描述")
    private String remark;

    @ApiModelProperty("浏览量")
    private Integer viewCount;

    @ApiModelProperty("排序码")
    private Integer sortCode;
}
